package com.hzw.saas.service.old.hub.enums;

import java.io.File;

/**
 * @author zzl
 * @since 04/23/2021
 */
public enum PathType {
    FILE, FOLDER;

    public static PathType instance(File file) {
        return file != null && file.isDirectory() ? FOLDER : FILE;
    }
}
